<?php
# !!!!!!!!!! DON'T MAKE ANY CHANGE IF YOU DON'T KNOW WHAT YOU'RE DOING !!!!!!!!!!
// --------------------------------------------------------------------------------------------------------------
// File Name              :	sidebar.php
// Last Modification Time	:	2008-02-01 24:00
// Last Modified by       :	turker (turker.biz@gmail.com)
// list of modifications	:
//
//	- 2008-02-01 turker
//		* 24:00 file created.
//
// --------------------------------------------------------------------------------------------------------------
if (eregi("sidebar.php",$_SERVER['PHP_SELF'])) {
	header ("Location:../index.php");
	exit;
}

global $page;
if ($page!='basket'&&$page!='orders') {
?>

<!--div:sol -->
  <div id="sol"><br />
<?php
  $hook->beforeSidebar();
	echo listLeftMenu(0);
?>

    <div id="searchbox">
      <form class="box" id="searchform">
        <input type="text" name="search" id="search" />
        <input type="button" value=" <?php echo $_LANG['sidebar']['search']; ?> " id="search_button" class="input-submit" />
      </form>
    </div>

<?php
  if (isAdmin()) {
    echo '<hr /><div id="adminLeft">';
    $hook->beforeAdminLeftMenu();
    echo '<a href="index.php?page=waiting_orders" title="Bekleyen Siparişler">Bekleyen Siparişler</a><br />';
    echo '<a href="index.php?page=add&what=options" title="Genel Ayarlar">Genel Ayarlar</a><br />';
    echo '<a href="index.php?page=users" title="Kullanıcı İşlemleri">Kullanıcı İşlemleri</a><br />';
    echo '<a href="index.php?page=add&what=exchange" title="Kur İşlemleri">Kur İşlemleri</a><br />';
    echo '<a href="index.php?page=add&what=brand" title="Marka İşlemleri">Marka İşlemleri</a><br />';
    echo '<a href="index.php?page=add&what=page" title="Sayfa Ekle">Sayfa Ekle</a><br />';
    echo '<a href="index.php?page=add&what=maincat" title="Ana Kategori Ekle">Ana Kategori Ekle</a><br />';
    $hook->afterAdminLeftMenu();
    echo '</div>';
  }
  $hook->afterSidebar();
?>
  </div>
<!--//div:sol -->
<?php
}
?>